package oracle_sql_option

import (
	"database/sql"

	_ "github.com/go-sql-driver/mysql"
	_ "github.com/lib/pq"
)

// 输入driver和连接语句，开启连接
func OpenDb(driver, constr string) (*sql.DB, error) {
	db, err := sql.Open(driver, constr)
	if err != nil {
		return nil, err
	}

	return db, nil
}
